package com.tyk.bookstore.back.comment.model.result;


import com.tyk.bookstore.back.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description 评论枚举异常
 */
public enum CommentResultEnum implements ResultEnum {

    COMMENT_NOT_FOUND(3_10_01_01, "评论不存在"),
    COMMENT_ALREADY_EXISTS(3_10_01_02, "商品已经评价");

    private final Integer code;
    private final String msg;

    CommentResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
    }
